package com.haierp.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.haierp.model.InventoryRecord.OperatorType;

/**
 * 库存出入库流水
 * 
 * @author zhulu
 *
 */
public class InventoryInout implements Serializable {
	
//	`id` bigint(19) NOT NULL AUTO_INCREMENT COMMENT '主键id',
//	  `item_id` bigint(19) DEFAULT NULL COMMENT '商品id',
//	  `sku_id` bigint(19) NOT NULL COMMENT 'skuid',
//	  `sku_code` varchar(64) DEFAULT NULL COMMENT 'sku码',
//	  `inventory_area_id` bigint(19) DEFAULT NULL COMMENT '仓库库存id',
//	  `warehouse_id` bigint(19) DEFAULT NULL COMMENT '仓库ID',
//	  `position_no` varchar(64) DEFAULT NULL COMMENT '货架编号',
//	  `quantity` bigint(11) DEFAULT '0' COMMENT '出入库数量',
//	  `operator_type` tinyint(2) DEFAULT NULL COMMENT '库存操作类型',
//	  `gmt_create` datetime NOT NULL COMMENT '创建时间',
//	  `gmt_modify` datetime NOT NULL COMMENT '操作时间',
	
	/**
	 * 主键id
	 */
	@TableId(type = IdType.AUTO)
	private Long id;
	/**
	 * 商品id
	 */
	@TableField(value = "item_id")
	private Long itemId;
	/**
	 * skuid
	 */
	@TableField(value = "sku_id")
	private Long skuId;
	/**
	 * skuCode
	 */
	@TableField(value = "sku_code")
	private String skuCode;
	/**
	 * 出入库数量
	 */
	@TableField(value = "quantity")
	private int quantity;


	@TableField(value = "inventory_area_id")
	private Long inventoryAreaId;

	@TableField(value = "origin_inventory_area_id")
	private Long originInventoryAreaId;
	/**
	 * 仓库Id
	 */
	@TableField(value = "warehouse_id")
	private Long warehouseId;
	/**
	 * 货架编号
	 */
	@TableField(value = "position_no")
	private String positionNo;
	/**
	 * 创建者
	 */
	@TableField(value = "user_create")
	private String userCreate;
	/**
	 * 创建时间
	 */
	@TableField(value = "gmt_create")
	private Date gmtCreate;
	/**
	 * 修改时间
	 */
	@TableField(value = "gmt_modify")
	private Date gmtModify;

	@TableField(value = "online_number")
	private String onlineNumber;

	@TableField(value = "operator_type")
	private Integer operatorType;
	
	@TableField(value = "erp_order_id")
	private Long erpOrderId;
	
	@TableField(value = "company_id") //所属公司
	private Long companyId;
	// 入库人
	/**
	 * 出入库原因
	 */
	@TableField(value = "inout_reason")
	private String inoutReason;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getItemId() {
		return itemId;
	}

	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}

	public Long getSkuId() {
		return skuId;
	}

	public void setSkuId(Long skuId) {
		this.skuId = skuId;
	}

	public String getSkuCode() {
		return skuCode;
	}

	public void setSkuCode(String skuCode) {
		this.skuCode = skuCode;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public Long getInventoryAreaId() {
		return inventoryAreaId;
	}

	public void setInventoryAreaId(Long inventoryAreaId) {
		this.inventoryAreaId = inventoryAreaId;
	}

	public Long getOriginInventoryAreaId() {
		return originInventoryAreaId;
	}

	public void setOriginInventoryAreaId(Long originInventoryAreaId) {
		this.originInventoryAreaId = originInventoryAreaId;
	}

	public Long getWarehouseId() {
		return warehouseId;
	}

	public void setWarehouseId(Long warehouseId) {
		this.warehouseId = warehouseId;
	}

	public String getPositionNo() {
		return positionNo;
	}

	public void setPositionNo(String positionNo) {
		this.positionNo = positionNo;
	}

	public String getUserCreate() {
		return userCreate;
	}

	public void setUserCreate(String userCreate) {
		this.userCreate = userCreate;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModify() {
		return gmtModify;
	}

	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}

	public Integer getOperatorType() {
		return operatorType;
	}

	public String getInoutReason() {
		return inoutReason;
	}

	public void setInoutReason(String inoutReason) {
		this.inoutReason = inoutReason;
	}

	public void setOperatorType(Integer operatorType) {
		this.operatorType = operatorType;
	}

	public Long getErpOrderId() {
		return erpOrderId;
	}

	public void setErpOrderId(Long erpOrderId) {
		this.erpOrderId = erpOrderId;
	}

	public Long getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Long companyId) {
		this.companyId = companyId;
	}

	public String getOnlineNumber() {
		return onlineNumber;
	}

	public void setOnlineNumber(String onlineNumber) {
		this.onlineNumber = onlineNumber;
	}
}
